<template>
    <el-row  class="spider-swiper">
        <el-col :span="4" v-for="(item, index) in lists" :key = index :offset="index > 0 ? 1 : 0">
            <el-card :body-style="{ padding: '0px' }">
                <img :src="item.imgurl" height=200px width=200px @click="openurl(item.url)" >
                <span @click="openurl(item.url)">买买买买买,只要998</span>
                <div style="padding: 12px;">
                    <span @click="openurl(item.url)"><font color="#dc143c">￥999包邮</font></span>
                </div>
            </el-card>
        </el-col>
    </el-row>
</template>

<script>
    export default {
        data() {
        },
        props:{
            lists:Array
        },
        methods: {
            openurl (url) {
                console.log(url)
                window.open(url)
            }
        }
    }
</script>

<style>
    .time {
        font-size: 13px;
        color: #999;
    }

    .bottom {
        margin-top: 0px;
        line-height: 12px;
    }

    .button {
        padding: 0;
        float: right;
    }

    .image {
        width: 10%;
        display: block;
    }

    .clearfix:before,
    .clearfix:after {
        display: flex;
        content: "";
    }

    .clearfix:after {
        clear: both
    }

    .spider-swiper {
        display: flex;
        flex-flow: row;
        width: 1200px;
        margin-top:5px;
        /*flex-wrap: wrap;*/
        flex: 20%;
    }

    .spider-swiper img {
        cursor: pointer;
    }
    .spider-swiper span {
        cursor: pointer;
    }
</style>